<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<!-- 顶部工具条 -->
	<div class="top">
		<div class="topbar">
			
			<div class="topaccount">
				<span  class="operate_nav"> <span style="width: 100px;" id="sell"><a style="width: 100%;" href="sss-1.do" rel="nofollow">个人中心</a> </span>
					<ul id="sellmenu" class="top_lg_info_down" style="display:none;">
						<li><a rel="nofollow" href="sss-1.do">所有订单</a></li>
						<li><a rel="nofollow" href="sss-1.do?type=1">待支付订单</a></li>
						<li><a rel="nofollow" href="sss-1.do?type=2">待发货订单</a></li>
						<li><a rel="nofollow" href="sss-1.do?type=3">待确认订单</a></li>
					</ul> |
				</span>
				<c:set var="login" value="${not empty sessionScope.user.userRealName }"/>
				<c:if test="${login}">
					<span class="operate_nav"> 欢迎光临键盘侠商城 <a href="" class="red">${sessionScope.user.userName}</a>|
					</span>
				</c:if>
				<span class="operate_nav"> </span>
			</div>
		</div>
	</div>
	
	<script type="text/javascript">
	 //订单中心显隐
usersell;sellmenu;clock;
            var usersell= document.getElementById('sell');
            var sellmenu= document.getElementById('sellmenu');
            var clock = null;//定义定时器变量
            //鼠标移入div1或div2都把定时器关闭了，不让他消失
            usersell.onmouseover = sellmenu.onmouseover = function ()
            {
				 //改变箭头方向
			              
				 //改变背景颜色
				 usersell.style.backgroundColor = '#fff';
				 //显示下拉框
                $("#sellmenu").show();
				//关闭定时执行
                clearTimeout(clock);
            }
			
            //鼠标移出div1或div2都重新开定时器，让他延时消失
            usersell.onmouseout = sellmenu.onmouseout = function ()
            {	
				usersell.style.backgroundColor = '#F5F5F5';
				 //开定时器，每隔200微妙下拉框消失
                clock = setTimeout(function () { 
                    $("#sellmenu").hide(); }, 10);
            } 		
</script>
